package com.gitee.shop.mapper;

import com.gitee.shop.domain.Item;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    Item selectByPrimaryKey(Integer id);

    List<Item> selectAll();

    int updateByPrimaryKey(Item record);
    //查询前六个热门和优惠商品
    List<Item> selectByIflag(int iflag);
    //根据分类信息查询商品
    List<Item> selectByCid(int cid);
}